package com.szu.subject.ui.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.szu.subject.domains.Address;
/**
 * 
 * @author Shenxiaolin
 *
 */
@Mapper
public interface AddressMapper {

	public Address getAddressByPK(Long id);

	public int createAddress(Address address);

	public int updateAddress(Address address);

	public int deleteAddress(Long id) ;

	public List<Address> getAllAddresses();

	public int batchCreateAddresses(List<Address> addresss);

	public int batchUpdateAddresses(List<Address> addresss);

	public int batchDeleteAddresses(List<Long> ids);
}
